package cloud.maque.admin.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 4color
 * @description 部门表
 * @date 2023-03-16
 */
@Data
@ApiModel("部门")
public class MqDepartment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    /**
     * 部门id
     */
    private String deptId;

    /**
     * dept_name
     */
    @ApiModelProperty(value = "部门名称", required = true)
    private String deptName;

    /**
     * 地址
     */
    private String address;

    /**
     * 电话
     */
    @ApiModelProperty(value = "部门电话")
    private String tel;

    /**
     * 部门编码
     */
    private String deptCode;

    /**
     * parent_id
     */

    private String parentId;

    /**
     * create_at
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * update_at
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * tenant_id
     */
    private String tenantId;

    /**
     * 排序
     */
    private Integer deptSort;

    /**
     * 行政区
     */
    private String xzqDm;

    public MqDepartment() {
    }
}
